package com.yuyou.fn.platform.entity;

import com.github.wens.mybatisplus.annotations.TableField;
import com.github.wens.mybatisplus.annotations.TableId;
import com.github.wens.mybatisplus.annotations.TableName;
import com.github.wens.mybatisplus.examples.Example;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * 用户设置接受数据通知
 *
 */
@TableName(value = "user_notify_config")
public class UserNotifyConfig implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	public static Example<UserNotifyConfig> createExample(){
		return new Example<UserNotifyConfig>(UserNotifyConfig.class);
	}

	/**  */
	@TableId(value = "user_id")
	private Long userId;

	/** 0邮箱 */
	private Integer way;

	/**  */
	@TableField(value = "way_data")
	private String wayData;

	/** [{type:"","conf":[{"areaTeamId":"","periodId":""}]}] */
	@TableField(value = "notify_config")
	private String notifyConfig;

	/**  */
	@TableField(value = "create_time")
	private Date createTime;

	/**  */
	@TableField(value = "update_time")
	private Date updateTime;

	/*0失效，1 生效*/
	private Integer state;

	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Integer getWay() {
		return this.way;
	}

	public void setWay(Integer way) {
		this.way = way;
	}

	public String getWayData() {
		return this.wayData;
	}

	public void setWayData(String wayData) {
		this.wayData = wayData;
	}

	public String getNotifyConfig() {
		return this.notifyConfig;
	}

	public void setNotifyConfig(String notifyConfig) {
		this.notifyConfig = notifyConfig;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}
}
